<%@ page import="com.pension.model.dto.Member"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>

<!DOCTYPE html>

<html>
<head>
	<meta charset="utf-8" />
	<title>로그인</title>
	<link rel="Stylesheet" href="/pension/styles/default.css" />
	<link rel="Stylesheet" href="/pension/styles/input.css" />	
</head>
<body>
	
	<div id="pageContainer">
	
		<% pageContext.include("/WEB-INF/views/include/header.jsp"); %>
		
		<div id="inputcontent">
			<br /><br /><br /><br /><br /><br />
		    <div id="inputmain">
		        <div class="inputsubtitle">로그인정보</div>
		        <br />
		        <form action="login.action" method="post">
		        <% if (request.getParameter("returnuri") != null) { %>
		        <% Member member = new Member(); %>
		        <%-- <input type="hidden" .. /> : 눈에 보이지 않는 입력 요소 --%>
		        <%
		        String returnuri = request.getParameter("returnuri");
		        String query = request.getParameter("pageno");
		        if (query != null && query.length() != 0) {		        			        	
		        	if (returnuri.contains("?")) {
		        		query="&pageno=" + query;
		        	} else {
		        		query = "?pageno=" + query;
		        	}
		        } else {
		        	query = "";
		        }
		        %>
		        <input type="hidden" name="returnuri"
		        	value='<%= returnuri + query %>' />
		        <% } %>
		        
		        <table>
		            <tr>
		                <th>아이디(ID)</th>
		                <td>
		                    <input type="text" name="memberId" style="width:280px" />
		                </td>
		            </tr>
		            <tr>
		                <th>비밀번호</th>
		                <td>
		                	<input type="password" name="passwd" style="width:280px" />
		                </td>
		            </tr>
		        </table>
		        <div class="buttons">
		        	<input type="submit" value="로그인" style="height:25px" />
		        	<input type="button" value="취소" style="height:25px" 
		        		onclick="location.href='/pension/home.action';"/>
		        </div>
		        </form>
		        
		    </div>
		    <br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
		</div>   	
	
	</div>

</body>
</html>